package com.zheng.HomeWeark2;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        System.out.println("请输入你的成绩");
        int number=s.nextInt();
        if (number<0||number>100){
            throw new SecurityException("分数必须在0-100之间");
        }
        System.out.println("成绩是："+number);
    }
    class ScoreException extends RuntimeException{
        public ScoreException() {
        }

        public ScoreException(String message) {
            super(message);
        }
    }
}
